package mode.proxy.cglib;

/**
 * cglib代理模式测试
 *
 * @author xjx
 * @date 2023/7/19 16:19
 */
public class MainTest {
    public static void main(String[] args) {
        SinaServer server = new SinaServer();
        NginxInvocationHandler handler = new NginxInvocationHandler();
        SinaServer proxy = (SinaServer) handler.getProxy(server);
        System.out.println(proxy.getPageTitle("http://www.sina.com.cn/"));
    }
}
